package com.ruoyi.show.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.show.mapper.Top10BooksCommentMapper;
import com.ruoyi.show.domain.Top10BooksComment;
import com.ruoyi.show.service.ITop10BooksCommentService;

/**
 * 最热书籍Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-08
 */
@Service
public class Top10BooksCommentServiceImpl implements ITop10BooksCommentService 
{
    @Autowired
    private Top10BooksCommentMapper top10BooksCommentMapper;

    /**
     * 查询最热书籍
     * 
     * @param id 最热书籍主键
     * @return 最热书籍
     */
    @Override
    public Top10BooksComment selectTop10BooksCommentById(Long id)
    {
        return top10BooksCommentMapper.selectTop10BooksCommentById(id);
    }

    /**
     * 查询最热书籍列表
     * 
     * @param top10BooksComment 最热书籍
     * @return 最热书籍
     */
    @Override
    public List<Top10BooksComment> selectTop10BooksCommentList(Top10BooksComment top10BooksComment)
    {
        return top10BooksCommentMapper.selectTop10BooksCommentList(top10BooksComment);
    }

    /**
     * 新增最热书籍
     * 
     * @param top10BooksComment 最热书籍
     * @return 结果
     */
    @Override
    public int insertTop10BooksComment(Top10BooksComment top10BooksComment)
    {
        return top10BooksCommentMapper.insertTop10BooksComment(top10BooksComment);
    }

    /**
     * 修改最热书籍
     * 
     * @param top10BooksComment 最热书籍
     * @return 结果
     */
    @Override
    public int updateTop10BooksComment(Top10BooksComment top10BooksComment)
    {
        return top10BooksCommentMapper.updateTop10BooksComment(top10BooksComment);
    }

    /**
     * 批量删除最热书籍
     * 
     * @param ids 需要删除的最热书籍主键
     * @return 结果
     */
    @Override
    public int deleteTop10BooksCommentByIds(Long[] ids)
    {
        return top10BooksCommentMapper.deleteTop10BooksCommentByIds(ids);
    }

    /**
     * 删除最热书籍信息
     * 
     * @param id 最热书籍主键
     * @return 结果
     */
    @Override
    public int deleteTop10BooksCommentById(Long id)
    {
        return top10BooksCommentMapper.deleteTop10BooksCommentById(id);
    }
}
